package com.joker.order.mapper;

import com.joker.order.domain.dto.OrderDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    void createOrder(OrderDTO orderDTO);

    void updateInventory(@Param("skuId") Long skuId, @Param("inventory") Integer inventory);

    List<Long> selectSkuIds();

    void insertOrderSku(@Param("orderId") Long orderId, @Param("skuIds") Long[] skuIds);

    void updateOrderStatusByOrderNo(String orderNo);

}
